import QuanSiteInfo from '@/views/QuanchengRoad/components/siteInfo/index.vue';
import QuanPipelineInfo from '@/views/QuanchengRoad/components/pipelineInfo/index.vue';
import QuanGasUser from '@/views/QuanchengRoad/components/gasUsers/index.vue';
import QuanDeviceAlarms from '@/views/QuanchengRoad/components/deviceAlarms/index.vue';
import QuanAlarmType from '@/views/QuanchengRoad/components/alarmType/index.vue';
import QuanNetworkRiskGrading from '@/views/QuanchengRoad/components/networkRiskGrading/index.vue';
import QuanThirdPartyRisk from '@/views/QuanchengRoad/components/thirdPartyRisk/index.vue';
import QuanMonitoringEquipment from '@/views/QuanchengRoad/components/monitoringEquipment/index.vue';
import QuanRouterButton from '@/views/QuanchengRoad/components/routerButton/index.vue';
import QuanTopComponent from '@/views/QuanchengRoad/components/topComponent/index.vue';
import QuanIncidentDisposition from '@/views/QuanchengRoad/components/incidentDisposition/index.vue';
import QuanAlertOverview from '@/views/QuanchengRoad/components/alertOverview/index.vue';
import LaserGimbal from '@/views/QuanchengRoad/components/LaserGimbal/index.vue';
import aiVideo from '@/views/QuanchengRoad/components/aiVideo/index.vue';

import { App } from 'vue';

const dynamicComponents = {
  QuanSiteInfo,
  QuanPipelineInfo,
  QuanGasUser,
  QuanDeviceAlarms,
  QuanAlarmType,
  QuanNetworkRiskGrading,
  QuanThirdPartyRisk,
  QuanMonitoringEquipment,
  QuanRouterButton,
  QuanTopComponent,
  QuanIncidentDisposition,
  QuanAlertOverview,
  LaserGimbal,
  aiVideo
};
export default {
  install(app: App) {
    Object.keys(dynamicComponents).forEach((key) => {
      app.component(key, dynamicComponents[key]);
    });
  }
};
